package com.melody.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 歌单信息表
 * @TableName playlist_info
 */
@TableName(value ="playlist_info")
@Data
public class PlaylistInfo implements Serializable {
    /**
     * 歌单id
     */
    @TableId(value = "list_id", type = IdType.AUTO)
    private Integer listId;

    /**
     * 歌单名
     */
    @TableField(value = "list_name")
    private String listName;

    /**
     * 为创建歌单的用户id，关联用户信息表
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 歌单描述
     */
    @TableField(value = "music_describe")
    private String musicDescribe;

    /**
     * 歌单封面的url
     */
    @TableField(value = "cover_image")
    private String coverImage;

    /**
     * 关联标签表
     */
    @TableField(value = "label_id")
    private Integer labelId;

    /**
     * 歌单类型，0:私有，1:公开
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 收藏量
     */
    @TableField(value = "collection_volume")
    private Integer collectionVolume;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标记，0:未删除,1:已删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}